#ifndef config_win32_h
#define config_win32_h
#define RTLD_NOW 0
#define RTLD_GLOBAL 0
#define _CRT_SECURE_NO_WARNINGS

#include <WinSock2.h>
#include <MSWSock.h>
#include <Windows.h>
#include <process.h>
#include <DbgHelp.h>
#include <stdio.h>
#include <stdlib.h>

#define PTW32_STATIC_LIB

#if defined(_MSC_VER)
#pragma comment(lib,"../3rd/lib/pthread_lib.lib")
#pragma comment(lib,"../3rd/lib/lualib.lib")
#endif

#if defined(SKYNET_DLL)
#define SKYNET_API __declspec(dllexport)
#else
#define SKYNET_API __declspec(dllimport)
#endif

SKYNET_API void* dlopen(const char* dllname, int flag);
SKYNET_API void* dlsym(void* handle, const char* funcname);
SKYNET_API const char* dlerror();
SKYNET_API void sleep(int sec);
SKYNET_API void usleep(long usec);
SKYNET_API char* strsep(char** str, const char* delim);
typedef int ssize_t;
#endif